OPC Studio User's Guide and Reference
Explicit Type Conversion Operator (UAAttributeDataResult<T>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Generic Namespace > UAAttributeDataResult<T> Class : Explicit Type Conversion Operator
The OPC-UA typed attribute data result to be converted.
Converts OPC-UA typed attribute data result object to a corresponding typed value result object, OpcLabs.BaseLib.OperationModel.Generic.ValueResult<T>.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<ContractAnnotationAttribute("null => null; notnull => notnull")>
Public Operator Narrowing CType( _
   ByVal attributeDataResult As UAAttributeDataResult(Of T) _
) As ValueResult(Of T)
'Usage
 
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public ValueResult<T> operator explicit( 
   UAAttributeDataResult<T> attributeDataResult
)
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public:
ValueResult<T^>^ operator explicit( 
   UAAttributeDataResult<T^>^ attributeDataResult
)

Parameters

attributeDataResult
The OPC-UA typed attribute data result to be converted.

Return Value

The typed value result object that corresponds to the typed attribute data result. null if the attribute data result passed in was null.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also